package com.ruoyi.hotel.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
@Data
@TableName("room")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RoomOrder {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @DateTimeFormat()
    private LocalDateTime createTime;

    @TableField(value = "create_name", fill = FieldFill.INSERT)
    private String createName;

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    @DateTimeFormat()
    private LocalDateTime updateTime;


    @TableField(value = "update_name", fill = FieldFill.UPDATE)
    private String updateName;

    // 订单开始时间
    @TableField(value = "begin_time")
    private LocalDateTime beginTime;

    // 订单结束时间
    @TableField(value = "end_time")
    private LocalDateTime endTime;

    // 订单类型
    @TableField(value = "type")
    private String type;

    // 订单来源
    @TableField(value = "source")
    private String source;


}
